home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / pas_all.zip / TI423.ASC < prev    next >
Text File  |  1992-08-12  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.   PRODUCT  :  TURBO PASCAL                           NUMBER  :  423
  8.   VERSION  :  4.0
  9.        OS  :  MS-DOS, PC-DOC
  10.      DATE  :  SEPTEMBER 20, 1988                       PAGE  :  1/1
  11.  
  12.     TITLE  :  PATCH FOR ^KW BLOCK WRITE DISK FILE SIZE NOT
  13.               TRUNCATED BUG
  14.  
  15.  
  16.  
  17.  
  18.   This  handout  describes  the patch needed in order for the Turbo
  19.   Pascal 4.0 editor to  correctly  block copy a portion of code out
  20.   of  a  source  file and truncate the file's size on  disk.    The
  21.   following  patch  should  be made to the TURBO.EXE file using the
  22.   DOS
  23.  
  24.      1.  Copy TURBO.EXE to a  file  called  TURBO.TXT.  (DEBUG will
  25.          not allow modifications to be made to an .EXE file.)
  26.  
  27.      2.  Load TURBO.TXT into DEBUG with the command:
  28.  
  29.          DEBUG TURBO.TXT
  30.  
  31.      3.  At DEBUG'S "-" prompt, enter the command E CS:3FCD.  Press
  32.          <Return>.  This  allows you to edit the  code  at  address
  33.          CS:3FCD.  The number 01. will  appear.   Type 3 next to it
  34.          and press <Return>.  Enter W <Return> to write the patched
  35.          program to disk and Q <R
  36.  
  37.          C:\TURBO>debug turbo.txt
  38.          -e CS:3FCD
  39.          29C9:3FCD  01.3
  40.          -w
  41.          Writing 1C248 bytes
  42.          -q
  43.  
  44.      4.  Rename  TURBO.TXT  to  TU.EXE.    (Use a name  other  than
  45.          TURBO.EXE so you can distinguish between the  original and
  46.          corrected versions.)
  47.  
  48.  
  49.   DISCLAIMER: You  have the right to use this technical information
  50.   subject to the terms  of  the  No-Nonsense License Statement that
  51.   you received with  the  Borland product to which this information
  52.   pertains.
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.